package cn.bocai.pc.web.portal;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
@RequestMapping("/skip")
public class skipPageController {
	
	@RequestMapping("/index.do")
	public String index(){
		return "page/index";
		
		//return "page/publicHead";
	}
	
	//跳入彩色图库
		@RequestMapping("/coloursPage.do")
		public String coloursPage(){
			
			return "page/coloursPage";
		}
	
		
		//跳入彩色图库
		@RequestMapping("/blackPage.do")
		public String blackPage(){
					
		return "page/blackPage";
		}
				
		
	//跳入注册账号
	@RequestMapping("/register.do")
	public String register(){
		
		return "page/accounts/register";
	}
	//跳入登入账号
	@RequestMapping("/login.do")
	public String login(){
		return "page/accounts/login";
	}
	//跳入修改密码账号
	@RequestMapping("/forgetPwd.do")
	public String forgetPwd(){
		return "page/accounts/forgetPwd";
	}
	
	
/**afterLogin 是表示登入以后才能看到的页面，这些页面都做了拦截处理*/
	//登入成功进如收藏页面
	@RequestMapping("/afterLogin/afLoCollect.do")
	public String publicAfterLogin(){
	  return "page/afterLogin/afLoCollect";
    }
	
	//跳转进如修改密码
	 @RequestMapping("/afterLogin/alterPassword.do")
	 public String alterPassword(){
		  return "page/afterLogin/alterPassword";
	  }
	 

	@RequestMapping("/test")
	public String test(Model m){
		m.addAttribute("msg","用户名或密码错误");
		m.addAttribute("url", "/skip/login.do");
		return "page/test/test";
	}
}
